// 临时测试脚本 - 测试单个API接口
use akoption;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    env_logger::init();
    
    println!("测试 option_sse_list_sina...");
    match akoption::option_sse_list_sina().await {
        Ok(data) => println!("✓ 成功: {} 条数据", data.len()),
        Err(e) => println!("✗ 失败: {:?}", e),
    }
    
    println!("\n测试 option_sse_expire_day_sina...");
    match akoption::option_sse_expire_day_sina().await {
        Ok(data) => println!("✓ 成功: {} 条数据", data.len()),
        Err(e) => println!("✗ 失败: {:?}", e),
    }
    
    println!("\n测试 option_sse_codes_sina...");
    match akoption::option_sse_codes_sina("2025-12-24").await {
        Ok(data) => println!("✓ 成功: {} 条数据", data.len()),
        Err(e) => println!("✗ 失败: {:?}", e),
    }
    
    println!("\n测试 option_sse_spot_price_sina...");
    match akoption::option_sse_spot_price_sina("50ETF").await {
        Ok(data) => println!("✓ 成功: {:?}", data),
        Err(e) => println!("✗ 失败: {:?}", e),
    }
    
    Ok(())
}
